<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	<body>
         <ui:composition template="templateGeneral.xhtml">
		<ui:define name="title">Dodavanje predmeta</ui:define>
		<ui:define name="center">
                    <h:form>
                        <h:panelGrid columns="2" style="margin-top: 160px;margin-left: 200px" cellpadding="20">
                        <p:outputLabel value="Nastavnik "/>
                        <p:outputLabel value="Student "/>                        
                        <p:selectCheckboxMenu label="Zaposleni"  filter="true" filterMatchMode="contains" panelStyle="width:220px">
                            <f:selectItems value="#{planCtrl.zaposleni}"/>
                            
                        </p:selectCheckboxMenu>
                        
                        <p:selectOneMenu id="nekidjavo" value="#{planCtrl.selectedPredmetString}" panelStyle="width:220px">
                            <f:selectItem itemLabel="Odaberi predmet"/>
                            <f:selectItems value="#{planCtrl.predmetList}" />
                            
                        </p:selectOneMenu>
                        <p:outputLabel value="Grupa:"/>
                        <p:inputText value="#{planCtrl.grupa}"/>

                        <p:outputLabel value=""/>
                        <p:commandButton value="Dodaj" actionListener="#{planCtrl.snimi()}" ajax="false"/>
                    </h:panelGrid>
                </h:form>
		</ui:define>
		</ui:composition>
    </body>

</html>